<template>
  <van-swipe class="swiper" :autoplay="3000" lazy-render>
    <van-swipe-item  v-for="(item, index) in topImages" :key="index">
      <img style="width:100%" :src="item" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: "DetailSwiper",
  props: {
    topImages: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style scoped>
.swiper{
  height: 300px;
}
</style>
